package com.zjw.zy.constant;

import android.util.Pair;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author ：zhong.jw
 * @date ：Created in 2022/9/28 11:14
 */
public class WeatherConstant {

    public static final String WEATHER_STATE_SUNNY = "晴";
    public static final String WEATHER_STATE_LIGHT_RAIN = "小雨";
    public static final String WEATHER_STATE_MODERATE_RAIN = "中雨";
    public static final String WEATHER_STATE_HEAVY_RAIN = "大雨";
    public static final String WEATHER_STATE_XXX_RAIN = "雷雨";
    public static final String WEATHER_STATE_CLOUDY = "多云";
    public static final String WEATHER_STATE_OVERCAST = "阴";
    public static final String WEATHER_STATE_SMOG = "雾霾";
    public static final String WEATHER_STATE_MINOR_SNOW = "小雪";
    public static final String WEATHER_STATE_MODERATE_SNOW = "中雪";
    public static final String WEATHER_STATE_MAJOR_SNOW = "大雪";

    public static final String WEATHER_CURRENT_CITY_AREA_CODE_KEY = "WEATHER_CURRENT_CITY_AREA_CODE_KEY";

    public static final Map<String, Integer> WEATHER_CITY_MAP = new HashMap<>();
    public static final Map<Integer, Pair<Double, Double>> WEATHER_CITY_LOCATION_MAP = new HashMap<>();

    static {
        WEATHER_CITY_MAP.put("重庆市", 101040100);
        WEATHER_CITY_MAP.put("重庆丰都", 101043000);
        WEATHER_CITY_MAP.put("四川广安", 101270801);

        //经度 维度
        WEATHER_CITY_LOCATION_MAP.put(101040100, Pair.create(106.55, 29.57));
        WEATHER_CITY_LOCATION_MAP.put(101043000, Pair.create(107.730895, 29.863500));
        WEATHER_CITY_LOCATION_MAP.put(101270801, Pair.create(106.633369, 30.456398));
    }

}
